package com.zhentao.controller;


import com.zhentao.service.impl.DeptServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("dept")
public class EmpController {
    @Autowired
    private DeptServiceImpl deptService;
    @RequestMapping("addNum")
    public int addNum(int did) {
        return deptService.addNum(did);
    }
}
